-- GENERATED SPELL FOR [Akali Subduer] --


function spell0_28988(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28988', 3000, 1)
end

function spell1_28988(pUnit, Event) --@Firebolt,n/a--
pUnit:FullCastSpellOnTarget(20801,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28988', 2000, 1)
end

function spell2_28988(pUnit, Event) --@Mojo Empowered Fire Ward,Self--
pUnit:FullCastSpellOnTarget(57843,pUnit)
pUnit:RegisterEvent('Sorts_28988', 642, 1)
end

function Sorts_28988(pUnit, Event)
local choix_sorts_28988 = math.random(0, 2)
if choix_sorts_28988 == 0 then
pUnit:RegisterEvent('spell0_28988', 1, 1)
end
if choix_sorts_28988 == 1 then
pUnit:RegisterEvent('spell1_28988', 1, 1)
end
if choix_sorts_28988 == 2 then
pUnit:RegisterEvent('spell2_28988', 1, 1)
end
end

function mob28988_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28988', math.random(1500, 3000), 1)
end

function mob28988_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28988_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28988_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28988, 1, 'mob28988_Action')
RegisterUnitEvent(28988, 2, 'mob28988_Leave')
RegisterUnitEvent(28988, 3, 'mob28988_Kill')
RegisterUnitEvent(28988, 4, 'mob28988_Die')
